#ifndef WRITER_H
#define WRITER_H

#include "shelf.h"

#include <QRunnable>
#include <QVector>
#include <QObject>
#include <QThread>

class Writer : public QThread, public QRunnable
{
    Q_OBJECT

    Shelf& shelf_;
    QVector<int> wrotedBooks_;
    int editTime_;
public:
    explicit Writer(Shelf& shelf, int cooldown, QObject* parent = 0);
    void run();
signals:
    
public slots:
    
};

#endif // WRITER_H
